home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Presentations / Presentations ’97 / Sessions ’97 / Java for Macintosh Applications / Edit / Edit(RT).r < prev    next >
Encoding:
Text File  |  1997-06-27  |  1.5 KB  |  102 lines  |  [TEXT/Rstr]

  1. /*
  2.     Edit(RT).r
  3.  
  4.     Really simple Java text editor.
  5.  
  6.     © 1997 by Michael J. Webb (mjw@codewell.com)
  7.  
  8. */
  9.  
  10. #ifndef __TYPES_R__
  11. #include "Types.r"
  12. #endif
  13.  
  14. #ifndef __SYSTYPES_R__
  15. #include "SysTypes.r"
  16. #endif
  17.  
  18. #define kSignature            'µiΩ1'            // Application signature
  19. #define kFileType            'TEXT'            // Data file type
  20. #define kBinFileType        'BEEP'            // Binary file type
  21.  
  22. #define kBundleID            128
  23. #define kApplicationID        128
  24. #define kDocumentID            129
  25. #define kBinDocumentID        130
  26.  
  27. type kSignature as 'STR ';
  28. resource kSignature (0,
  29. "Signature",
  30.     purgeable)
  31. {
  32.     "Roaster Edit Application © 1997 Michael J. Webb"
  33. };
  34.  
  35. resource 'FREF' (kApplicationID,
  36. "Roaster Edit Application",
  37.     purgeable)
  38. {
  39.     'APPL',
  40.     0,
  41.     ""
  42. };
  43.  
  44. resource 'FREF' (kDocumentID,
  45. "Roaster Edit Document",
  46.     purgeable)
  47. {
  48.     kFileType,
  49.     1,
  50.     ""
  51. };
  52.  
  53. resource 'FREF' (kBinDocumentID,
  54. "Roaster Edit Binary Document",
  55.     purgeable)
  56. {
  57.     kBinFileType,
  58.     1,
  59.     ""
  60. };
  61.  
  62. resource 'BNDL' (kBundleID,
  63. "Roaster Edit Application",
  64.     purgeable)
  65. {
  66.     kSignature,
  67.     0,
  68.     { /* array TypeArray: 2 elements */
  69.         /* [1] */
  70.         'ICN#',
  71.         { /* array IDArray: 3 elements */
  72.             0, kApplicationID,
  73.             1, kDocumentID,
  74.             2, kBinDocumentID
  75.         },
  76.         /* [2] */
  77.         'FREF',
  78.         { /* array IDArray: 3 elements */
  79.             0, kApplicationID,
  80.             1, kDocumentID,
  81.             2, kBinDocumentID
  82.         }
  83.     }
  84. };
  85.  
  86. // The revision of this particular file
  87.  
  88. RESOURCE 'vers' (1,
  89. "File Version",
  90.     purgeable)
  91. {
  92.     0x00,
  93.     0x00,
  94.     alpha,
  95.     0x001,
  96.     verUs,
  97.     "0.0a1",
  98.     "Roaster Edit Application© 1997 Michael J. Webb"
  99. };
  100.  
  101. include "Edit Common.rsrc";
  102.